<?php 

print '<table border=1, caption=docenti>';
print '<tr><td><h3><b>Insegnamento<h3/></td><td><h3><b>Matricola<h3/></td>
		<td><h3><b>Nome<h3/></td><td><h3><b>Cognome<h3/></td>
		<td><h3><b>Anno Accademico<h3/></td><tr/>';

foreach($frequenta as $i):
		echo '<tr><td>'.$i['id_insegnamento'].'</td><td>'.$i['matr'].'</td>
				<td>'.$i['nome'].'</td><td>'.$i['cognome'].'</td>
						<td>'.$i['id_anno_accademico'].'</td><tr/>';

endforeach;
print '</table>';?>